package chpt02;

import java.util.Scanner;

public class OperateDemo02 {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.print("C的成绩是：");
		int cScore = input.nextInt();
		System.out.print("Java的成绩是：");
		int javaScore = input.nextInt();	
		System.out.print("SQL的成绩是：");
		int sqlScore = input.nextInt();
		double avgScore = (cScore + javaScore + sqlScore)*1.0 / 3;
		System.out.println("Tom的3门课平均分是" + avgScore);
		System.out.printf("Tom的3门课平均分是：%.2f", avgScore);
		input.close();
	}
}
